package com.lm.survey.lifecycle;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.lm.survey.model.Activity;
import com.lm.survey.report.SelfEQTestReportLogic;

public class EQLifecycle extends CommonSelfTestLifeCycle {
    public boolean isAutoGenerateReport(Activity activity){
        return false;
    }
    public void generateReport(HttpServletRequest request,
            HttpServletResponse response) throws ServletException, IOException {
        SelfEQTestReportLogic report = new SelfEQTestReportLogic();
        report.generateReport(request,response);
    }
    
    public void generateActivityReport(HttpServletRequest request,
            HttpServletResponse response) throws ServletException, IOException {
        SelfEQTestReportLogic report = new SelfEQTestReportLogic();
        report.generateOnePersonReport(request,response);
    }
}
